<style>
 .content-table {
width:100%;
margin:0;
padding:0;
border-spacing:2px;
 }
 .tourBoxContent{
border-bottom: 1px solid #dedede; padding: 0 8px; margin: 0px; width: 100%; height:180px;
 }
 .tourBoxName{
margin-top: 100px;margin-top: 100px;
font-family: inherit;
font-size: inherit;
font-weight: inherit;
color: white; 
}
.tourBoxFoodName{
    padding: 6px 0;color: #F39C11;font-size: 20px;font-weight: bold;
}
.tourBoxAdImg{
    width: 40%;height: 120px;float: left;overflow: hidden;
}
.tourBoxAdDesc{
    padding-left: 12px;float: left;width: 56%;
}
 </style>
<div class="content-table">
    <?php
       foreach ($messageList as $message) {
           $detailUrl = $control->getLinkUrl(array('name' => 'detail','id' => 'tourBoxAdDetail'),array('messageID'=>$message->id,'messageName'=>$message->name));
           $messageImage = $message->getMediaManager()->getMedia('image')->content;
          if(strlen($messageImage)>0){
              $goodPic=$messageImage;
          }
          else{
              $goodPic='#';
          }
?>
    <a href="<?php echo $detailUrl;?>">
        <div class="tourBoxContent">
        <div class="tourBoxAdImg">
            <img src="<?php echo Yii::app()->request->baseUrl.$goodPic; ?>" style="width:100%; height:100%;"/>
        </div>
        <div class="tourBoxAdDesc">
             <div style="color: black;font-family: 微软雅黑；;"> <?php echo $message->name; ?></div>
        </div>
    </div></a>
<?php } ?>
</div>

